<?php 

	$resp = array(
		"success"=>false,
		"msg"=>$this->message,
	);
	
	if (isset($this->exception)){
		$add = array(
			"msgs"=>$this->exception->getMessage(),
			"stack"=>$this->exception->getTraceAsString(),
			"vars"=>var_export($this->request->getParams(), true),
			"rows"=>array(),
			"data"=>null
		);
		$resp = array_merge($resp,$add);
	}
	echo json_encode($resp);
		
?>

